package com.come4loves.game.module.fight.model;

import java.util.Comparator;

public class SpeedComparator implements Comparator<FightCard> {

	@Override
	public int compare(FightCard o1, FightCard o2) {
		if (o1.getSpeed() > o2.getSpeed()) {
			return 1;
		} else if(o1.getSpeed() < o2.getSpeed()){
			return -1;
		} else {
			return 0;
		}
	}

}
